from playwright.sync_api import sync_playwright
with sync_playwright() as p:
    browser = p.chromium.launch(headless=False)
    page = browser.new_page()
    page.goto("https://commons.wikimedia.org/wiki/File:Ford_Madox_Brown_-_The_Last_of_England_-_Google_Art_Project.jpg")
    page.getByRole("link",name='Original file').click()
    # Start waiting for the download
    with page.expect_download() as download_info:
        # Perform the action that initiates download
        page.get_by_text("Download file").click()
    download = download_info.value

    # Wait for the download process to complete and save the downloaded file somewhere
    download.save_as("/path/to/save/at/" + download.suggested_filename)
    print(page.title())